﻿using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class BuiltInFnGroupCountRecord : BiffRecord
    {
        private ushort count = 0x10;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            count = context.ReadUInt16();
        }

        internal override BiffRecordType RecordType
        {
            get
            {
                return BiffRecordType.BuiltInFnGroupCount;
            }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Write(count);
        }
    }
}